// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

export const getVehicle = (params) => {
  return postRequest('/vehicle/getList', params)
}

export const getProjectName = () => {
  return postRequest('/project/getAll')
}

export const insertVehicle = params => {
  return postRequest('/vehicle/insert', params)
}

export const updateVehicle = params => {
  return postRequest('/vehicle/update', params)
}

export const destroyVehicle = params => {
  return postRequest('/vehicle/destroy', params)
}

export const getDispatch = params => {
  return postRequest('/dispatch/getList', params)
}

export const updateDispatch = params => {
  return postRequest('/dispatch/update', params)
}

export const insertDispatch = params => {
  return postRequest('/dispatch/insert', params)
}

export const destroyDispatch = params => {
  return postRequest('/dispatch/destroy', params)
}

export const getFirstTicket = params => {
  return postRequest('/firstTicket/getList', params)
}

export const insertFirstTicket = params => {
  return postRequest('/firstTicket/insert', params)
}

export const updateFirstTicket = params => {
  return postRequest('/firstTicket/update', params)
}

export const getFirstTicketById = params => {
  return postRequest('/firstTicket/getOne', params)
}

export const getPourBrake = params => {
  return postRequest('/pourBrake/getList', params)
}

export const destroyPourBrake = params => {
  return postRequest('/pourBrake/destroy', params)
}

export const getPourBrakeById = params => {
  return postRequest('/pourBrake/getOne', params)
}

export const insertPourBrake = params => {
  return postRequest('/pourBrake/insert', params)
}